Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added event handler for bluetooth adapter state change. #39

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

robgar2001
Copy link
Contributor

It allows for detection when the bluetooth adapter is turned off/on.
For example:

  • Update gui to disconnected state in case bluetooth adapter is turned off.

https://developer.android.com/guide/topics/connectivity/bluetooth/setup
image

It allows for detection when the bluetooth adapter is turned off/on.
@b3b
Copy link
Owner

b3b commented Jul 12, 2023

Thank you, @robgar2001
Looks great. I'll test and merge it.

@b3b b3b merged commit 9eb618a into b3b:master Jul 19, 2023
@b3b
Copy link
Owner

b3b commented Jul 23, 2023

Released in version 1.0.14.

Also, added able.AdapterState helper,
and usage example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants